package jym.tan.tmdb.json;

import com.google.gson.Gson;

public class Parser {

	private static final Parser PARSER = new Parser();
	
	private final Gson gson = new Gson();
	
	private Parser() {
		
	}
	
	public <T> T parseJson(String json, Class<T> clazz) {
		return gson.fromJson(json, clazz);		
	}
	
	public static final Parser getInstance() {
		return PARSER;
	}
}
